//
//  ZZCarDebtSelectedView.m
//  新项目
//
//  Created by liGordon on 17/3/16.
//  Copyright © 2017年 刘耀宗. All rights reserved.
//

#import "ZZCarDebtSelectedView.h"

@implementation ZZCarDebtSelectedView

+(instancetype)ViewWithXib
{
    ZZCarDebtSelectedView *view=[[[NSBundle mainBundle] loadNibNamed:@"ZZCarDebtSelectedView" owner:nil options:nil]lastObject];
    return view;
    
}
-(void)awakeFromNib
{
    [super awakeFromNib];
    
    
}

- (IBAction)clickForSeletecd:(id)sender {
    if ([self.delegate respondsToSelector:@selector(clickForSeletectedDataWithCarPlate:andOwnerName:)]) {
        if (self.carPlateInput.text.length==0||self.carPlateInput.text==nil||[[self.carPlateInput.text class] isSubclassOfClass:[NSNull class]]) {
            self.carPlateInput.text=@"";
        }
        if (self.carOwnerInput.text.length==0||self.carOwnerInput.text==nil||[[self.carOwnerInput.text class] isSubclassOfClass:[NSNull class]]) {
            self.carOwnerInput.text=@"";
        }
        [self.delegate clickForSeletectedDataWithCarPlate:self.carPlateInput.text andOwnerName:self.carOwnerInput.text];
        
    }
}
- (IBAction)clickForHiden:(id)sender {
    if ([self.delegate respondsToSelector:@selector(hiddenTheView)]) {
        [self.delegate hiddenTheView];
    }
}

@end
